#!/usr/bin/env bash
app_name='jenkins-demo'
docker stop ${app_name}
echo '----stop container----'
docker rm ${app_name}
echo '----rm container----'
docker run -p 9001:9001 --name ${app_name} \
#--link mysql:db \
-v /etc/localtime:/etc/localtime \
-v /home/app/${app_name}/logs:/var/logs \
-d springboot/${app_name}
echo '----start container----'